﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using Htss.Platform;
using Htss.Platform.Data;
using Htss.Platform.WebApi;

namespace DreamBox.Api.posts
{
    public class classificationBox:ApiBox
    {
        public ActionResult get()
        {
            JsonResult jsonResult = null;
            DbAction db = new DbAction();
            DataTable dt = db.SelectNonQuery("select * from dbox_PostsClass order by Sort desc");
            if (dt.Rows.Count > 0)
            {
                jsonResult = Json(true, Htss.Platform.Core.Json.ToJson(dt));
            }
            else
            {
                jsonResult = Json(false,"没有获取到请求数据");
            }
            return jsonResult;
        }
    }
}